﻿using BLL.Utility;

namespace WayCloud.ViewModel
{
    public class JqGrid
    {
        public JqGrid(PageInfo pageInfo, dynamic recordList)
        {
            page = pageInfo.CurrentPage;
            total = pageInfo.TotalPage;
            records = pageInfo.TotalRecords;
            rows = recordList;
        }

        /// <summary>
        /// 当前页
        /// </summary>
        public int page { get; set; }

        /// <summary>
        /// 总页数
        /// </summary>
        public int total { get; set; }

        /// <summary>
        /// 总记录数
        /// </summary>
        public int records { get; set; }

        public dynamic rows { get; set; }

    }
}